package com.mc.code.entity.sys;

import com.baomidou.mybatisplus.annotations.TableField;
import com.mc.code.entity.CodeUsers;


import java.util.List;

/**
 * 关于后台对项目的管理
 */
public class SysItems {
    private int id;//主键
    private String itemImage;//项目图片
    private  int itemNo;//项目编号
    private int itemType;//项目类型（1：web网站；2：App开发；3：微信公众号；4：小程序；5：HTML应用；6：其他项目）
    private int promulgatorId;//发布人编号
    private double money;//项目标价
    private int day;//项目周期
    private String text;//项目简介
    private int itemCondition;//项目审核状态(1:通过；2：不通过；3：未审核)
    private String demandDocument;//项目需求文件
    private String itemName;//项目名称
    private int itemDid;//项目状态（1：正在招募中；2：正在进行中 3：已完成）
    private int itemNeedType;//项目招募人类型（1：个人；2团队）

    //用户
    @TableField(exist = false)   //mybatis plus忽略该属性和数据库的映射
    private List<CodeUsers> codeUsers;

    public List<CodeUsers> getCodeUsers() {
        return codeUsers;
    }

    public void setCodeUsers(List<CodeUsers> codeUsers) {
        this.codeUsers = codeUsers;
    }

    @Override
    public String toString() {
        return "SysItems{" +
                "id=" + id +
                ", itemImage='" + itemImage + '\'' +
                ", itemNo=" + itemNo +
                ", itemType=" + itemType +
                ", promulgatorId=" + promulgatorId +
                ", money=" + money +
                ", day=" + day +
                ", text='" + text + '\'' +
                ", itemCondition=" + itemCondition +
                ", demandDocument='" + demandDocument + '\'' +
                ", itemName='" + itemName + '\'' +
                ", itemDid=" + itemDid +
                ", itemNeedType=" + itemNeedType +
                ", codeUsers=" + codeUsers +
                '}';
    }

    public SysItems() {
    }

    public SysItems(String itemImage, int itemNo, int itemType, int promulgatorId, double money, int day, String text, int itemCondition, String demandDocument, String itemName, int itemDid, int itemNeedType) {
        this.itemImage = itemImage;
        this.itemNo = itemNo;
        this.itemType = itemType;
        this.promulgatorId = promulgatorId;
        this.money = money;
        this.day = day;
        this.text = text;
        this.itemCondition = itemCondition;
        this.demandDocument = demandDocument;
        this.itemName = itemName;
        this.itemDid = itemDid;
        this.itemNeedType = itemNeedType;
    }

    public SysItems(int id, String itemImage, int itemNo, int itemType, int promulgatorId, double money, int day, String text, int itemCondition, String demandDocument, String itemName, int itemDid, int itemNeedType) {
        this.id = id;
        this.itemImage = itemImage;
        this.itemNo = itemNo;
        this.itemType = itemType;
        this.promulgatorId = promulgatorId;
        this.money = money;
        this.day = day;
        this.text = text;
        this.itemCondition = itemCondition;
        this.demandDocument = demandDocument;
        this.itemName = itemName;
        this.itemDid = itemDid;
        this.itemNeedType = itemNeedType;
    }

    public int getId() { return id; }

    public void setId(int id) { this.id = id; }

    public String getItemImage() { return itemImage; }

    public void setItemImage(String itemImage) { this.itemImage = itemImage; }

    public int getItemNo() { return itemNo; }

    public void setItemNo(int itemNo) { this.itemNo = itemNo; }

    public int getItemType() { return itemType; }

    public void setItemType(int itemType) { this.itemType = itemType; }

    public int getPromulgatorId() { return promulgatorId; }

    public void setPromulgatorId(int promulgatorId) { this.promulgatorId = promulgatorId; }

    public double getMoney() { return money; }

    public void setMoney(double money) { this.money = money; }

    public int getDay() { return day; }

    public void setDay(int day) { this.day = day; }

    public String getText() { return text; }

    public void setText(String text) { this.text = text; }

    public int getItemCondition() { return itemCondition; }

    public void setItemCondition(int itemCondition) { this.itemCondition = itemCondition; }

    public String getDemandDocument() { return demandDocument; }

    public void setDemandDocument(String demandDocument) { this.demandDocument = demandDocument; }

    public String getItemName() { return itemName; }

    public void setItemName(String itemName) { this.itemName = itemName; }

    public int getItemDid() { return itemDid; }

    public void setItemDid(int itemDid) { this.itemDid = itemDid; }

    public int getItemNeedType() { return itemNeedType; }

    public void setItemNeedType(int itemNeedType) { this.itemNeedType = itemNeedType; }

}
